import 'dart:collection';

class UserMatchInfoModel {
  int? matchId;
  int? clubId;
  String? clubImage;
  String? clubName;
  String? courtName;
  String? matchTime;
  String? siteFees;
  String? matchRulesValue;
  String? matchRulesName;
  int? matchNumberParticipants;
  String? isPunishment;
  bool? isFull;
  int? signUpUserNum;
  bool? normalCancellation;
  bool? isSignUp;
  bool? isPay;
  String? jerseyColor;
  String? opponent;

  UserMatchInfoModel(
      {this.matchId,
      this.clubId,
      this.clubImage,
      this.clubName,
      this.courtName,
      this.matchTime,
      this.siteFees,
      this.matchRulesValue,
      this.matchRulesName,
      this.matchNumberParticipants,
      this.isPunishment,
      this.isFull,
      this.signUpUserNum,
      this.normalCancellation,
      this.isSignUp,
      this.isPay,
      this.jerseyColor,
      this.opponent});

  UserMatchInfoModel.fromJson(Map<String, dynamic> json) {
    matchId = json['matchId'];
    clubId = json['clubId'];
    clubImage = json['clubImage'];
    clubName = json['clubName'];
    courtName = json['courtName'];
    matchTime = json['matchTime'];
    siteFees = json['siteFees'];
    matchRulesValue = json['matchRulesValue'];
    matchRulesName = json['matchRulesName'];
    matchNumberParticipants = json['matchNumberParticipants'];
    isPunishment = json['isPunishment'];
    isFull = json['isFull'];
    signUpUserNum = json['signUpUserNum'];
    normalCancellation = json['normalCancellation'];
    isSignUp = json['isSignUp'];
    isPay = json['isPay'];
    jerseyColor = json['jerseyColor'];
    opponent = json['opponent'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = HashMap();
    data['matchId'] = matchId;
    data['clubId'] = clubId;
    data['clubImage'] = clubImage;
    data['clubName'] = clubName;
    data['courtName'] = courtName;
    data['matchTime'] = matchTime;
    data['siteFees'] = siteFees;
    data['matchRulesValue'] = matchRulesValue;
    data['matchRulesName'] = matchRulesName;
    data['matchNumberParticipants'] = matchNumberParticipants;
    data['isPunishment'] = isPunishment;
    data['isFull'] = isFull;
    data['signUpUserNum'] = signUpUserNum;
    data['normalCancellation'] = normalCancellation;
    data['isSignUp'] = isSignUp;
    data['isPay'] = isPay;
    data['jerseyColor'] = jerseyColor;
    data['opponent'] = opponent;
    return data;
  }
}